home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8524 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  37 lines

  1. Newsgroups: comp.lang.c++
  2. Path: news.spb.su!demos!pluscom!usenet
  3. From: sergeyp@albea.ugatu.ac.ru (Sergey Pavlov)
  4. Subject: Re: Borland CmExit() - conditions where it won't work?
  5. X-Newsreader: Forte Free Agent 1.0.82
  6. Sender: usenet@news.rinet.ru (Superuser)
  7. Nntp-Posting-Host: albea.ugatu.ac.ru
  8. Organization: Albea
  9. Message-ID: <DMrxE0.Dzu@news.rinet.ru>
  10. References: <bshimkin-1202962147440001@bshimkin.tiac.net>
  11. Date: Wed, 14 Feb 1996 16:22:30 GMT
  12.  
  13. bshimkin@tiac.net (Brian Shimkin) wrote:
  14.  
  15.  
  16. >Using Borland C++, during window initialization, I detect an error
  17. >condition, post an acknowledge box, set the acknowledge box to be the main
  18. >window and then call CmExit().  However, CmExit() does not cause the
  19. >application to exit.
  20.  
  21. >The documentation states that if called with the main window, CmExit will
  22. >cause the application will exit.
  23.  
  24. >Is it perhaps too soon for my application to call CmExit?  Is there
  25. >another alternative to force an early application termination?
  26.  
  27. >   Brian Shimkin
  28. >   bshimkin@tiac.net
  29.  
  30. Best way:
  31.  
  32. throw some exception from error point. If no catches, program will be
  33. aborted.
  34.  
  35.  
  36.  
  37.